-- GENERATED SPELL FOR [Anub'ar Venomancer] --


function spell0_29217(pUnit, Event) --@Poison Bolt,n/a--
pUnit:FullCastSpellOnTarget(53617,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29217', 11000, 1)
end

function spell1_29217(pUnit, Event) --@Poison Bolt,n/a--
pUnit:FullCastSpellOnTarget(59359,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29217', 11000, 1)
end

function spell2_29217(pUnit, Event) --@Poison Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(53616,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29217', 9000, 1)
end

function spell3_29217(pUnit, Event) --@Poison Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(59360,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29217', 9000, 1)
end

function Sorts_29217(pUnit, Event)
local choix_sorts_29217 = math.random(0, 3)
if choix_sorts_29217 == 0 then
pUnit:RegisterEvent('spell0_29217', 1, 1)
end
if choix_sorts_29217 == 1 then
pUnit:RegisterEvent('spell1_29217', 1, 1)
end
if choix_sorts_29217 == 2 then
pUnit:RegisterEvent('spell2_29217', 1, 1)
end
if choix_sorts_29217 == 3 then
pUnit:RegisterEvent('spell3_29217', 1, 1)
end
end

function mob29217_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29217', math.random(1500, 3000), 1)
end

function mob29217_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29217_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29217_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29217, 1, 'mob29217_Action')
RegisterUnitEvent(29217, 2, 'mob29217_Leave')
RegisterUnitEvent(29217, 3, 'mob29217_Kill')
RegisterUnitEvent(29217, 4, 'mob29217_Die')
